/**
 * 
 */
package org.karthik.ecomm.dto;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * @author Uday Shankar
 *
 */
@Entity
public class UserDetails {
	@Id
	@Column(name="USER_ID")
	private int userId;
	@Column(name="USER_NAME")
	private String userName;
	@Column(name="USER_LOCATION")
	private String location;
	
	public UserDetails(){
		this.userId = 101;
		this.userName = "Chejerla Karthik";
		this.location = "Chennai";
	}
		
	public UserDetails(int userId, String userName, String location) {
		this.userId = userId;
		this.userName = userName;
		this.location = location;
	}
	
	
	/**
	 * @return the userId
	 */
	public int getUserId() {
		return userId;
	}
	/**
	 * @param userId the userId to set
	 */
	public void setUserId(int userId) {
		this.userId = userId;
	}
	/**
	 * @return the userName
	 */
	public String getUserName() {
		return userName;
	}
	/**
	 * @param userName the userName to set
	 */
	public void setUserName(String userName) {
		this.userName = userName;
	}
	/**
	 * @return the location
	 */
	public String getLocation() {
		return "location is "+location;
	}
	/**
	 * @param location the location to set
	 */
	public void setLocation(String location) {
		this.location = location;
	}
}
